package jdbclearn1;/*
@Date:2025/3/11
*/

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;

public class TsetConn {
    public static void main(String[] args) throws Exception {
        //解耦 法二  I/O
        Properties properties = new Properties();
        FileInputStream fileInputStream = new FileInputStream("src\\jdbc.propertise");
        properties.load((fileInputStream));
        String user = properties.getProperty("user");
        String password = properties.getProperty("password");
        String url = properties.getProperty("url");
        String driver = properties.getProperty("driver");
        System.out.println(user+"\n"+password+"\n"+url+"\n"+driver+"\n");

    }

}
